function asignarListenerReg(us, pss)
{
    $.ajax
            ({
                type: "POST",
                url: "./php_logger.php",
                data:
                        {
                            req: "login",
                            user: us,
                            pass: pss
                        },
                success: function(data)
                {
                    var json = jQuery.parseJSON(data);
                    console.log(json.success);
                    if (json.success)
                    {
                        user = json.user;
                        conntrass = user;
                        doc.getElementById("us").innerHTML = "<b>Perfil de Usuario: " + user + "  |  </b>";
                        doc.getElementById("lg").innerHTML = "<img src = 'imagenes/logout.png'> <b>Cerrar Sesión</b>";
                        logged = true;
                        tipoUser = json.tipo;
                        logAccept(tipoUser);
                    }
                }
            });
    return false;
}